#pragma once
#include <vector>
#include <SFML\Graphics.hpp>


	enum Rotacion
	{
		Up = 0,
		Right = 90,
		Down = 180,
		Left = 270
	};

struct Shoot
{
	sf::RectangleShape Shape;

	sf::Vector2f mPosition;
	Rotacion mRotacion;

	void update(float&, sf::Time&);

	bool erase;
};

class ShootMachine
{
public:
	ShootMachine();

	void Attack(Rotacion, sf::Vector2f);
	void update(sf::Time&);
	void draw(sf::RenderWindow*);

	sf::RectangleShape sd;

private:
	std::vector<Shoot*> tShoots;

	float shootSpeed;
	sf::Clock shootSpeedColck;
	sf::Time time;
	float ostatniStrzal;
};

